c code to calculate the sum of first n odd numbers